package com.yuyou.fn.tradingservice.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by wens on 2017/4/9.
 */
@Controller
public class IndexController {

    @RequestMapping("/index")
    public String index(ModelMap model){
//        List<String> lists = new ArrayList<>();
//        lists.add("a");
//        lists.add("b");
//        lists.add("c");
//        model.addAttribute("lists",lists);
//        model.addAttribute("date",new Date());
//        model.addAttribute("decimal",new BigDecimal("19.45"));
//        System.out.println(new BigDecimal("19.45"));
        return "index" ;
    }

    @RequestMapping("/register")
    public String register(ModelMap model){
        return "merchant/register" ;
    }

    @RequestMapping("/login")
    public String login(ModelMap model){
        return "login" ;
    }

    @RequestMapping("/success")
    public String success(ModelMap model){
        return "success" ;
    }

}
